#include "Log.hpp"
#include <memory>
using namespace wxd;
int main()
{
    //std::unique_ptr<LogStrategy> ptr_logstrategy = std::make_unique<ConsoleLogStrategy>();
    // std::unique_ptr<LogStrategy> ptr_logstrategy = std::make_unique<FileLogStrategy>();

    // ptr_logstrategy->SyncLog("hello world");

    // logger.EnableConsoleLogStrategy();
    // logger(LogLevel::DEBUG,"Main.cc",12) << "test";

    EnableFileLogStrategy();
    LOG(LogLevel::DEBUG) << "test" <<1<<" "<<"3.2";
    //LOG(LogLevel::INFO) << "test" <<1<<" "<<"3.2";
    LOG(LogLevel::ERROR)<<"hello world";

    return 0;
}